package com.ztesoft.web.baseconfig.db.dao.mapper;

import com.ztesoft.web.baseconfig.db.arg.DmDataStateArg;
import com.ztesoft.web.baseconfig.db.po.DmDataStatePO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IDmDataStateMapper {
    
    List<Integer> countByArg(DmDataStateArg arg);

    List<DmDataStatePO> selectByArg(DmDataStateArg arg);

    DmDataStatePO selectByPrimaryKey(Integer id);
    
    DmDataStatePO selectByDmTaskId(Integer id);

    List<DmDataStatePO> selectByArgAndPage(DmDataStateArg arg, RowBounds rowBound);

    int insert(DmDataStatePO record);

    int insertSelective(DmDataStatePO record);

    int insertBatch(@Param("list") List<DmDataStatePO> records);

    int updateByArgSelective(@Param("record") DmDataStatePO record,
            @Param("arg") DmDataStateArg arg);

    int updateByArg(@Param("record") DmDataStatePO record,
            @Param("arg") DmDataStateArg arg);

    int updateByDmTaskIdSelective(DmDataStatePO record);
    
    int updateByPrimaryKeySelective(DmDataStatePO record);

    int updateByPrimaryKey(DmDataStatePO record);
    
    int deleteByArg(DmDataStateArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}